<%@ Page Language="C#" MasterPageFile="~/masterpages/PublicThreeColumnLayout.master" AutoEventWireup="true" CodeFile="Recover.aspx.cs" Inherits="public_Recover" Title="Untitled Page" %>
<%@ Register Src="~/controls/Password.ascx" TagPrefix="ucc" TagName="Password" %>

<asp:Content ID="head" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="MiddleContent" ContentPlaceHolderID="MiddleContent" Runat="Server">
    <asp:Panel ID="pnlSendRecoverMail" runat="server" Visible="true">
        <table class="recoverArea">
            <tr>
                <td>   
                    <div class="row">
                        <div class="col">
                            <div class="row">
                                <asp:ValidationSummary ID="vsmRegistration" runat="server" CssClass="validationSummary" 
                                    HeaderText="Please correct the following issues." />
                            </div>
                            <div class="row">
                                <div class="col">Enter Your User ID</div>
                            </div>
                            <div class="row">
                                <div class="col">
                                    <asp:TextBox ID="tbxUserId" runat="server" CssClass="recoverTextBox" MaxLength="20"></asp:TextBox>
                                </div>
                                <div class="col">
                                    <asp:RequiredFieldValidator ID="rqvUserId" runat="server" ControlToValidate="tbxUserId"
                                        Display="dynamic" ErrorMessage="User ID is Required" Text="*" >
                                    </asp:RequiredFieldValidator>
                                </div>
                                <div class="col">
                                    <asp:RegularExpressionValidator ID="rexUserId" runat="server" ControlToValidate="tbxUserId"
                                        Display="Dynamic" ErrorMessage="<%$ Code:CodeWork.Library.RegExUtil.UserNameFormatError %>" 
                                        ValidationExpression="<%$ Code:CodeWork.Library.RegExUtil.UserNameFormat %>" Text="*" >
                                    </asp:RegularExpressionValidator>
                                </div>
                            </div>
                            <div class="row">
                                <div class="col">
                                    <asp:ImageButton ID="ibtSendPassword" runat="server" AlternateText="Send My Password" 
                                        OnClick="SendPassword_Click" />
                                </div>
                            </div>
                            <div class="row">
                                <div class="col">
                                    <asp:Label ID="lblRecoverMessage" runat="server" CssClass="errorMessage" Visible="false"
                                        Text="<%$ Code:CodeWork.Library.CommonMessage.RecoverErrorMessage %>"></asp:Label>
                                </div>
                            </div>
                        </div>
                    </div>
                </td>
            </tr>
        </table>
    </asp:Panel>
    <asp:Panel ID="pnlChangePassword" runat="server" Visible="true">
        <table class="changePasswordArea">
            <tr>
                <td>   
                    <div class="row">
                        <div class="col">
                            <div class="row">
                                <asp:ValidationSummary ID="vsmChangePassword" runat="server" CssClass="validationSummary" 
                                    HeaderText="Please correct the following issues." />
                            </div>
                            <div class="row">
                                <div class="col smallHeader">Set New Password</div>
                            </div>
                            <div class="row">
                                <div class="col changePasswordTitle">Question</div>
                                <div class="col">
                                    <asp:Label ID="lblSecurityQuestion" runat="server"></asp:Label>
                                </div>
                            </div>
                            <div class="row">
                                <div class="col changePasswordTitle">Answer</div>
                                <div class="col">
                                    <asp:TextBox ID="tbxSecurityAnswer" runat="server" CssClass="recoverTextBox" MaxLength="30">
                                    </asp:TextBox>
                                </div>
                                <div class="col">
                                    <asp:RegularExpressionValidator ID="rexAnswer" runat="server" ControlToValidate="tbxSecurityAnswer"
                                        Display="Dynamic" ErrorMessage="<%$ Code:CodeWork.Library.RegExUtil.TextOnlyFormatError %>" 
                                        ValidationExpression="<%$ Code:CodeWork.Library.RegExUtil.TextOnlyFormat %>" Text="*" 
                                        ValidationGroup="RegisterValidate">
                                    </asp:RegularExpressionValidator>
                                </div>
                                <div class="col">
                                    <asp:RequiredFieldValidator ID="revSecurityAnswer" runat="server" Display="dynamic" 
                                        ControlToValidate="tbxSecurityAnswer" ErrorMessage="Answer is Required" Text="*" >
                                    </asp:RequiredFieldValidator>
                                </div>
                            </div>
                            <div class="row">
                                <div class="col">
                                    <ucc:Password ID="uccPassword" runat="server" TitleCssClass="changePasswordTitle" 
                                        TextBoxCssClass="recoverTextBox" PasswordHintCssClass="smallLink" 
                                        PasswordStrengthCssClass="registerPasswordStrength" />
                                </div>
                            </div>
                            <div class="row">
                                <div class="col changePasswordTitle">&nbsp;</div>
                                <div class="col">
                                    <asp:Button ID="btnChangePassword" runat="server" Text="Change Password" 
                                        OnClick="ChangePassword_Click" />
                                </div>
                            </div>
                            <div class="row">
                                <div class="col">
                                    <asp:Label ID="lblChangePasswordMessage" runat="server" Visible="false" 
                                        Text="<%$ Code:CodeWork.Library.CommonMessage.PasswordChangeErrorMessage %>"></asp:Label>
                                </div>
                            </div>
                        </div>
                    </div>
                </td>
            </tr>
        </table>
    </asp:Panel>
</asp:Content>

